<%@ page language="java" contentType="text/html; charset=UTF-8"	%>
<%@ include file="/basecore/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>数据权限设置</title>
		<%@ include file="/basecore/meta.jsp"%>
		
	</head>
	<body >		
		<form name="form1" id="form1" action="dataSetAuthSetController.wit" method="post">	
			
			<table id="nav" width="98%">
				<tr>
					<td ><img class="img24" src="${contextPath}/webresource/images/meta/application.jpg">
					<span align="left" style="font-size: 13px;color: #636365;font-weight: bold;">
						数据权限设置
					</span></td>
					<td align="right" id="searchbar" > 
						用户:<input name="_usernameInputField" id="_usernameInputField" class="input-text" style="width:80px" readonly/>
						<wit:searchExpression expression="like(username,_usernameInputField,A)" />	
						<wit:userSelectDialog treeid="loguser" dialogTitle="请选择用户"
							field1="identity" field2="_usernameInputField"
							width="450" height="400"	onlyLeaf="1"						
						/>
						资源:<input name="_targetnameInputField" id="_targetnameInputField" class="input-text" style="width:80px"/>
						<wit:searchExpression expression="like(targetname,_targetnameInputField,A)" />	
				
			  			<a href="#" onclick="query(form1,'dataSetAuthSetController.wit')">
			  				<img class="img16" src="${contextPath}/webresource/images/operation/search.gif">
			  			</a>
	  				</td>
				</tr>
			</table>	
			
			<div id="optbar" class="operation">					
					<wit:dataSetAuth entryid="${entryid}" entryname="${entryname}" category="${category}" data="${data}" 
    				data2="${data2}" parentid="${parentid}" root="${root}" multiple="${multiple}"
					datatype="${datatype}" nodeid="${nodeid}" nodelabel="${nodelabel}" nodeid2="${nodeid2}" nodelabel2="${nodelabel2}"
					height="${height}" width="${width}" titles="${titles}" target="${target}" 
					target_value="${target_value}"
					
					>
    				<img src="${contextPath}/webresource/images/ico_btn_add.gif">新增(A)
   					</wit:dataSetAuth>
					<a href="javascript:create(document.form1,'dataSetAuthSetController!edit.wit')" accesskey="e">
					<img src="${contextPath}/webresource/images/ico_btn_edit.gif">
					编辑(E)</a>	
					<a href="javascript:batch_del(document.form1,'','dataSetAuthSetController!delete.wit')" accesskey="r">
					<img src="${contextPath}/webresource/images/ico_btn_del.gif">
					删除(R)</a>	
			</div>
			
			<ec:table items="dataSetAuthList" var="data" tableId="dataSetAuth" width="98%"
				action="${contextPath}/dataSetAuthSetController.wit"  state="persist"	form="form1"
				ajax="true" sortable="false"
				filterRowsCallback="org.extremecomponents.table.callback.ProcessRowsCallback"
				sortRowsCallback="org.extremecomponents.table.callback.ProcessRowsCallback"
				retrieveRowsCallback="org.extremecomponents.table.callback.ProcessRowsCallback"	
				rowsDisplayed="12"							
				>				
				<ec:row >
					<ec:column property="ROWCOUNT" title=" "  width="5%" viewsAllowed="html">
						${ROWCOUNT}
					</ec:column>	
					<ec:column  property="checkbox" title=" " sortable="false" width="5%" viewsAllowed="html">
						<input type="checkbox" name="itemlist" value="${data.id}" style="border: 0px" />
					</ec:column>				
					<ec:column  property="username" alias="username" title="用户" width="100"/>
					<ec:column  property="usercnname" alias="usercnname" title="姓名" width="50"/>
					<ec:column  property="targetname" alias="targetname" title="资源" />
					<ec:column  property="authnames" alias="authnames"  title="权限项" format="80"/>								
				</ec:row>
			</ec:table>	
			
			<input type="hidden" name="data" value="${data}"/>
			<input type="hidden" name="properties" value="${properties}"/>
			<input type="hidden" name="category" value="${category}"/>
			<input type="hidden" name="entryid" value="${entryid}"/>
			<input type="hidden" name="entryname" value="${entryname}"/>
			<input type="hidden" name="datatype" value="${datatype}"/>
			<input type="hidden" name="datastyle" value="${datastyle}"/>	
			<input type="hidden" name="titles" value="${titles}"/>	
			<input type="hidden" name="multiple" value="${multiple}"/>	
			
			<input type="hidden" name="data2" value="${data2}"/>
			<input type="hidden" name="root" value="${root}"/>
			<input type="hidden" name="parentid" value="${parentid}"/>
			<input type="hidden" name="nodeid" value="${nodeid}"/>
			<input type="hidden" name="nodeid2" value="${nodeid2}"/>
			<input type="hidden" name="nodelabel" value="${nodelabel}"/>
			<input type="hidden" name="nodelabel2" value="${nodelabel2}"/>
			<input type="hidden" name="onlyLeaf" value="${onlyLeaf}"/>
			<input type="hidden" name="height" value="${height}"/>
			<input type="hidden" name="width" value="${width}"/>			
			
			<input type="hidden" name="filterOptions" value="${filterOptions}" />		
			</form>
	</body>
</html>